﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="InfoTypeList.ascx.cs"
    Inherits="Admin_Crimson_Controls_InfoTypeList" %>
<%@ Register Src="InfoTypeTree.ascx" TagName="InfoTypeTree" TagPrefix="uc1" %>
<%@ Register Src="~/Admin/Crimson/Controls/InfoTypeTreeSelector.ascx" TagName="InfoTypeTreeSelector"
    TagPrefix="uc2" %>
<style type="text/css">
    .infoTreeView
    {
        width: 100%;
        float: left;
    }
    .infoTreeView .content
    {
       margin-left:250px;
    }
    .editPanel
    {
        padding: .5em .5em .5em .5em;
        float: left;
        width: 220px;
        margin-left: -100%;
    }
</style>
<div class="toolbar">
    <asp:LinkButton ID="add" Text="添加" runat="server" OnClick="addNewType" CausesValidation="false"
        CssClass="iconButton infoAdd" />
</div>
<div class="infoTreeView ">
    <div class="content ui-widget ui-widget-content ui-corner-all">
        <uc1:InfoTypeTree ID="infoTree1" runat="server" />
    </div>
</div>
<asp:Panel ID="panel1" runat="server" CssClass="editPanel ui-widget ui-widget-content ui-corner-all"
    Enabled="false">
    <div>
        <input type="hidden" runat="server" id="infoTypeIdHiddenBox" />
        <asp:Label ID="label1" runat="server" AssociatedControlID="nameTextBox" Text="名称:"></asp:Label>
        <asp:TextBox ID="nameTextBox" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="requiredFieldValidator" runat="server" ControlToValidate="nameTextBox"
            ErrorMessage="请填写内容类别名称"></asp:RequiredFieldValidator>
    </div>
    <div>
        <asp:Label ID="label2" runat="server" AssociatedControlID="infoTypeTreeSelector2"
            Text="所属分类:"></asp:Label>
        <uc2:InfoTypeTreeSelector ID="infoTypeTreeSelector2" runat="server" />
    </div>
    <asp:Button ID="saveButton" runat="server" Text="确定" OnClick="save_Click" />
</asp:Panel>
